﻿@{
    Layout = null;
    LeEdu.MODEL.UserInfo user = ViewBag.user;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>个人详细信息</title>
</head>
<body>
    <!-- /.modal -->
    <div class="modal-header">
        <button type="button" class="close"
                data-dismiss="modal" aria-hidden="true">
            &times;
        </button>

        <span class="modal-title" id="myModalLabel">
            个人详细信息
        </span>

    </div>
    <div class="modal-body">
        <div class="table-responsive  table-bordered">
            <table class="table ">
                <tr>
                    <td id="user">用户名</td>
                    <td> @user.Uname  <br /> <a href="">个人主页（跟上一个链接地址）</a></td>
                </tr>
                <tr>
                    <td>Email</td>
                    <td>  @user.Email  </td>
                </tr>

                @*用户组的判断  多重身份的时候  字符串分割？*@
                <tr>
                    <td>用户组</td>
                    <td>   @(user.RoleId==0?"管理员":user.RoleId==1?"学员":user.RoleId==2?"教师":"其它") </td>
                </tr>
                <tr>
                    <td>性别</td>
                    <td> @(user.Sex==0?"女":"男")   </td>
                </tr>
                <tr>
                    <td>身份证号</td>
                    <td> @(user.IDCard==null?"暂无":user.IDCard) </td>
                </tr>
                <tr>
                    <td>手机号码</td>
                    <td> @(user.PhoneNum==null?"暂无":user.PhoneNum )  </td>
                </tr>
                <tr>
                    <td>公司</td>
                    <td>  @(user.Company==null?"暂无":user.Company) </td>
                </tr>
                <tr>
                    <td>职业</td>
                    <td>  @(user.Job==null?"暂无":user.Job)  </td>
                </tr>
                <tr>
                    <td>头衔</td>
                    <td> @(user.Post==null?"暂无":user.Post)   </td>
                </tr>
                <tr>
                    <td>自我介绍</td>
                    <td>@(user.Self==null?"暂无":user.Self)    </td>
                </tr>
                <tr>
                    <td>微信</td>
                    <td> @(user.WeChat==null?"暂无":user.WeChat)  </td>
                </tr>
                <tr>
                    <td>QQ</td>
                    <td> @(user.QQ==null?"暂无":user.QQ)   </td>
                </tr>
                
                
            </table>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default"
                data-dismiss="modal">
            关闭
        </button>
        @*<button type="button" class="btn btn-primary">
                提交更改
            </button>*@
    </div>
</body>
</html>

